<?php
namespace app\admin\validate;

use think\Validate;

class Managervali extends Validate
{
	//规则
    protected $rule =   [
        'username'  => 'require|max:32|min:4',
        'passwd'   => 'min:4',

    ];

    //不匹配规则返回的信息
    protected $message  =   [
        'username.require' => '名称必须',
        'username.max'     => '名称最多不能超过32个字符',
        'username.min'   => '名称最多不能少于4个字符',
        'passwd.min'        => '密码不能小于4为',    
    ];

}